#include<iostream>
#include<vector>
using namespace std;
vector<int> getRow(int rowIndex) {
    vector<vector<int>>result(rowIndex+1);
    for (int i = 0; i < rowIndex+1; i++)
    {
        result[i].resize(i + 1, 0);
        result[i][0] = result[i][result[i].size() - 1] = 1;
    }
    for (int i = 0; i < rowIndex + 1; i++)
    {
        for (int j = 0; j < result[i].size(); j++)
        {
            if (result[i][j] != 1)
                result[i][j] = result[i - 1][j] + result[i - 1][j - 1];
            if (result[i][j] == 1)
                continue;






        }
    }
    vector<int>path(result[rowIndex]);
    return path;
}
int main()
{
    vector<int>res=getRow(0);
    for (int i = 0; i < res.size(); i++)
    {
        cout << res[i] << " ";
    }

}